package com.itheima.mapper;

import com.itheima.pojo.Member;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

public interface MemberMapper {
    Member findMemberByTelePhone(@Param("telephone") String telephone);

    int addMember(Member member);

    int findMemberCountByMonth(@Param("beginDate") String beginDate, @Param("endDate") String endDate);

    int getMemberCountsByDay(@Param("today") String today);

    int getMemberTotalCounts();

    int getMemberCountsByWeek(@Param("thisWeekMonday") String thisWeekMonday, @Param("today") String today);

    int getMemberCountsByMoth(@Param("firstDay") String firstDay, @Param("today") String today);


    void DeleteMenberCountsByDate(@Param("beginDate") String beginDate, @Param("endDate") String endDate);

}
